Reddit - Get Random Subreddit Top Post
(8 actions, 9 KB)
0 Comment
https://www.reddit.com/dev/api/#GET_{sort}
1 Dictionary »
{ "t": "all", "limit": "100" }
2 ToolboxProForShortcuts > CreateQueryItemIntent »
dictionary
:
[1 Dictionary]
inputType
:
dictionary
3 ToolboxProForShortcuts > BuildURLIntent »
path
:
/
[Shortcut Input]
/top.json
host
:
www.reddit.com
queryItems
:
[2 Query Item]
4 Get Contents of URL
[3 URL]
»
RequestVariable
:
[? Shortcut Result]
HTTPHeaders
:
{}
ShowHeaders
:
true
HTTPMethod
:
GET
HTTPBodyType
:
File
5 Get Dictionary Value for
data.children
in
[4 Contents of URL]
»
6 Get
Random Item
from List
[5 Dictionary Value]
»
7 Stop and Output
[6 Item from List
as Dictionary.data
]